package sensorSelectionFramework;

public class SensorSelectionTest {
	
	private static final int OPTIMAL_BUDGET = 10;
	private OptimalSensorsSet optimalSensorsSet = new OptimalSensorsSet();
	private SelectionControl selectionControl = new SelectionControl();
	
	
	
	public static void main(String[] arg)
	{
		SensorSelectionTest selectionTest = new SensorSelectionTest();
		SensorSet inputSet = selectionTest.mockSensorSet();
		selectionTest.optimalSensorsSet.setBudget(OPTIMAL_BUDGET);
		selectionTest.selectionControl.setOptimalSensorsSet(selectionTest.optimalSensorsSet);
		//selectionTest.selectionControl.ramdomSelection(inputSet);
		//selectionTest.selectionControl.greedySelection(inputSet); 
		selectionTest.selectionControl.dynamicSelection(inputSet);
		selectionTest.optimalSensorsSet.setSensorList(selectionTest.selectionControl.getOptimalSensorsSet().getSensorList());
		selectionTest.optimalSensorsSet.printSetElement();
		
	}
	
	private SensorSet mockSensorSet()
	{
		SensorSet sensorSet = new SensorSet();
		Sensor sensor1 = new Sensor(1,4,20);
		Sensor sensor2 = new Sensor(2,5,10);
		Sensor sensor3 = new Sensor(3,500,20);
//		Sensor sensor4 = new Sensor(4,108,2);
//		Sensor sensor5 = new Sensor(5,22,38);
//		Sensor sensor6 = new Sensor(6,39,27);
//		Sensor sensor7 = new Sensor(7,54,44);
//		Sensor sensor8 = new Sensor(6,12,68);
		
		sensorSet.getSensorList().add(sensor1);
		sensorSet.getSensorList().add(sensor2);
		sensorSet.getSensorList().add(sensor3);
//		sensorSet.getSensorList().add(sensor4);
//		sensorSet.getSensorList().add(sensor5);
//		sensorSet.getSensorList().add(sensor6);
//		sensorSet.getSensorList().add(sensor7);
//		sensorSet.getSensorList().add(sensor8);
		return sensorSet;
		
	}
	
}
